import 'package:flutter/material.dart';
import 'package:flutter/services.dart';


/// System overlays should be drawn with a dark color. Intended for
/// applications with a light background.
const SystemUiOverlayStyle dark1 = SystemUiOverlayStyle(
  systemNavigationBarColor: Color(0xFF000000),
  systemNavigationBarDividerColor: null,
  statusBarColor: Color(0xFF222222),
  systemNavigationBarIconBrightness: Brightness.light,
  statusBarIconBrightness: Brightness.dark,
  statusBarBrightness: Brightness.light,
);

setStatusBarBlack() {
  SystemUiOverlayStyle systemUiOverlayStyle = SystemUiOverlayStyle(
    statusBarColor: Colors.transparent,
    statusBarBrightness: Brightness.dark,
    statusBarIconBrightness: Brightness.dark,
  );
  SystemChrome.setSystemUIOverlayStyle(systemUiOverlayStyle);
}

setStatusBarWhite() {
  SystemUiOverlayStyle systemUiOverlayStyle = SystemUiOverlayStyle(
    statusBarColor: Colors.transparent,
    statusBarBrightness: Brightness.light,
    statusBarIconBrightness: Brightness.light,
  );
  SystemChrome.setSystemUIOverlayStyle(systemUiOverlayStyle);
}

class IconTab {
  const IconTab({this.title, this.icon});

  final String title;
  final IconData icon;
}

const List<IconTab> tabs = const <IconTab>[
  const IconTab(title: 'CAR', icon: Icons.directions_car),
  const IconTab(title: 'BICYCLE', icon: Icons.directions_bike),
  const IconTab(title: 'BOAT', icon: Icons.directions_boat),
];